//
//  AppDelegate.swift
//  NetEasyNew
//
//  Created by 蔡万鸿 on 15/5/24.
//  Copyright (c) 2015年 黄花菜. All rights reserved.
//

import UIKit
import AFNetworking

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        // 1. 设置缓存
        var chache = NSURLCache(memoryCapacity: 4 * 1024 * 1024, diskCapacity: 20 * 1024 * 1024, diskPath: nil)
        
        // 2.设置网络指示器(只要有网络请求，就会自动显示菊花)
        AFNetworkActivityIndicatorManager.sharedManager().enabled = true

        return true
    }

}

